package com.parksys.service.impl;

import com.parksys.dao.NewsDao;
import com.parksys.pojo.Discount;
import com.parksys.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author KENANS
 * @date 2020-9-15 16:39
 * @Version 1.0
 */
@Service
public class NewsServiceImpl implements NewsService {

    @Autowired
    private NewsDao newsDao;
    @Override
    public List<Discount> findAll() {
        return newsDao.findAll();
    }

    @Override
    public void delete(Integer id) {
        newsDao.delete(id);
    }
}
